String xml = "<xml>...</xml>";
Map properties = new HashMap();
properties.put("LineOperator", "MATSON");
api.sendXml(xml, properties);
Other available groovy api methods also take the additional header properties.
GroovyAPI.sendXml(String inXml, Map inProperties)
GroovyAPI.sendXml(String inIntegrationService, String inXml, Map inProperties)
GroovyAPI.sendXml(sendJMSBytesMessage(String inXml, Map inProperties)
GroovyAPI.sendJMSBytesMessage(String inIntegrationService, String inXml, Map inProperties)